﻿<%@ Page Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true"
    CodeFile="ViewUserSelectedHistory.aspx.cs" Inherits="Admin_user_ViewUserSelectedHistory" Title="Admin - View User Selected History" %>

<%@ Register Src="../../controls/usrDate.ascx" TagName="usrDate" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table style="width: 100%" cellspacing="5" cellpadding="5">
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Width="10px"></asp:Label>
            </td>
            <td>
                &nbsp;
            </td>
            <td style="font-weight: bold">
                <h2>
                    User Selected History
                </h2>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td colspan="2">
                &nbsp;
                <asp:GridView ID="grvViewHistory" runat="server" AutoGenerateColumns="False" CellPadding="4"
                    DataKeyNames="SelectedId" DataSourceID="sqlDbUserLoginHistory" ForeColor="#333333"
                    GridLines="None" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnRowCreated="grvLoginHistory_RowCreated"
                    OnRowDataBound="grvLoginHistory_RowDataBound">
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="SelectedId" HeaderText="SelectedId" InsertVisible="False"
                            ReadOnly="True" SortExpression="SelectedId" />
                        <asp:BoundField DataField="SelectedType" HeaderText="SelectedType" 
                            SortExpression="SelectedType" />
                        <asp:BoundField DataField="SelectedResultId" HeaderText="SelectedResultId" 
                            SortExpression="SelectedResultId" />
                        <asp:BoundField DataField="SelectedCompanyId" HeaderText="SelectedCompanyId" 
                            SortExpression="SelectedCompanyId" />
                        <asp:BoundField DataField="ViewedId" HeaderText="ViewedId" 
                            SortExpression="ViewedId" />
                        <asp:BoundField DataField="ViewedNo" HeaderText="ViewedNo" 
                            SortExpression="ViewedNo" />
                        <asp:BoundField DataField="SelectedCount" HeaderText="SelectedCount" 
                            SortExpression="SelectedCount" />
                        <asp:BoundField DataField="SelectedDate" HeaderText="SelectedDate" 
                            SortExpression="SelectedDate" />
                    </Columns>
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
                <asp:SqlDataSource ID="sqlDbUserLoginHistory" runat="server" ConnectionString="<%$ ConnectionStrings:CX_DBConnectionString %>"
                    SelectCommand="sprocUserSelectededHistoryDetailSelectItemListByViewedID" 
                    SelectCommandType="StoredProcedure">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="ViewedID" QueryStringField="ViewedID" 
                            Type="Int64" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
    </table>
</asp:Content>
